package com.csair.platform.cit.facade;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import com.alibaba.fastjson.JSONObject;
import com.csair.invoice.common.base.vo.JsonResult;
import com.csair.platform.cit.facade.model.CitQueryParam;
import com.csair.platform.cit.facade.model.InitDataVo;

/**
 * 前端获取页面初始化数据的接口
 * @author liaoxiaojin
 *
 */
@RequestMapping("/init")
public interface InitDataApi {

	/**
	 * 获取主表期初数据
	 * @param param 查询参数
	 * @return 主表期初数据
	 */
	@PostMapping("/getInitData")
	JsonResult<InitDataVo> getInitData(@RequestBody CitQueryParam param);
	
	/**
	 * 获取A202000，分配表的期初数据
	 * @param param 查询参数
	 * @return  JSONObject.put("zjgxx", CitZjgxxFormVo)
	 *          JSONObject.put("fzjgxx", List<CitFzjgFormVo>)
	 */
	@PostMapping("/getA202000InitData")
	JsonResult<JSONObject> getA202000InitData(@RequestBody CitQueryParam param);
}
